<?php
$mbangcap=new Model_Bangcap;
if($_GET['mode'] == "delall"){
	if($_GET['check'] == "yes"){
		$mbangcap->delete_all($_POST['id']);
		redirect("index.php?module=bangcap&act=list");
	}
	$str=implode(",",$_POST['id']);
	$data['list']=$mbangcap->listselect($str);
	loadview("bangcap/delete_confirm",$data);
}else{
$data['info']=$mbangcap->listbangcap();
loadview("bangcap/list_view",$data);
}